package com.bdqn.t362.order.service.impl;

import com.bdqn.t362.order.dao.TB2COrderDao;
import com.bdqn.t362.order.dao.impl.TB2COrderDaoImpl;
import com.bdqn.t362.order.entity.TB2COrder;
import com.bdqn.t362.order.entity.TProduct;
import com.bdqn.t362.order.service.TB2COrderService;

import java.util.List;

/**
 * @author lqm
 * @ClassName TB2COrderServiceImpl
 * @description: TODO
 */
public class TB2COrderServiceImpl implements TB2COrderService {
    TB2COrderDao dao = new TB2COrderDaoImpl();
    @Override
    public int addOrder(TB2COrder tb2COrder) {
        return dao.addOrder(tb2COrder);
    }

    @Override
    public TB2COrder getOrderByOrderCode(String orderCode) {


        return dao.getOrderByOrderCode(orderCode);
    }

    @Override
    public int updateOrder(String orderCode, String payStatus) {

        return dao.updateOrder(orderCode,  payStatus);
    }

    @Override
    public List<TProduct> getProductList() {
        return null;
    }
}
